package br.pucrio.inf.lac.konoha.hyuga.playground;

import java.io.Serializable;
import java.util.Collection;

public class D implements Serializable {
    private Collection<?> z;
    private A[] zz;
    private A k;
    
public A getK() {
    return k;
}

public void setK(A k) {
    this.k = k;
}

    
    private boolean foi;
    
    public Collection<?> getZ() {
        return z;
    }
    
    public void setZ(Collection<?> z) {
        this.z = z;
    }
    
    public A[] getZz() {
        return zz;
    }
    
    public void setZz(A[] zz) {
        this.zz = zz;
    }
    
    
    public void setFoi(boolean foi) {
        this.foi = foi;
    }
    
    
    public boolean isFoi() {
        return foi;
    }

    public D() {
        // TODO Auto-generated constructor stub
    }
    @Override
    public String toString() {
        if (zz != null)     return "" + zz.length;
        else if (z != null) return "" + z.size();
        else                return "foi null";
    }
    
}
